const db = require('./DB')
const getUserList = () => {
  return new Promise((resolve, reject) => {
    let sql = `SELECT * FROM user`
    db.query(sql, (err, results) => {
      if (err) {
        return reject(err)
      }
      resolve(results)
    })
  })
}
module.exports = {
  getUserList,
}
